package com.cody.service;

import com.cody.entity.Question;
import com.cody.entity.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * @author Cody
 * @date 2021/4/8 - 12:10
 */
public interface QuestionService {
    List<Question> queryAllQuestion();
    List<Question> queryAllQuestionByAdmin();

    List<Question> queryQuestionByStudentId(String studentNumber);

    List<Question> queryQuestionsByTeacherId(String teacherNumber);

    List<Question> queryQuestionByQuestionText(String questionText);

    List<Question> queryQuestionByQuestionsubjectAndQuestionsection(String questionSubject, String questionSection);

    List<String> queryQuestionByQuestionSection();

    List<Question> queryQuestionByKeyword(String keyword);

    List<String> queryQuestionByQuestionSubject();

    List<HashMap<String,Object>>  queryQuestion();

    Question queryQuestionByQuestionId(Integer questionId);

    boolean insertQuestion(Question question);

    boolean updateQuestion(Integer questionId);

    boolean updQuestionInfo(Question question);

    List<Question> queryQuestionByCommentSum();

    boolean delQuestionByQuestionId(Integer questionId);
}
